package com.qf.service;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentBuilder;

import java.io.IOException;

public interface IndexService {
    // 创建索引
    void createIndex(String index, String type, Settings settings, XContentBuilder mappings) throws IOException;

    // 判断索引是否存在
    boolean existsIndex(String index) throws IOException;

    // 删除索引
    void deleteIndex(String index) throws IOException;
}
